package com.lzh.shijicloudstack.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 食材类别表
 *
 * @author luzhiheng
 * @since 2024-01-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@TableName("ingredient_category")
@Table(name = "ingredient_category", indexes = {})
public class IngredientCategory extends BaseEntity {

    /**
     * 类别名称
     */
    @Column(name = "name", columnDefinition = "varchar(255) COMMENT '类别名称'")
    private String name;

    /**
     * 父级ID
     */
    @Column(name = "parent_id", columnDefinition = "bigint(20) COMMENT '父级ID'")
    private Long parentId;

    /**
     * 是否为子节点（没有子集的节点） 0否 1是
     */
    @Column(name = "is_node", columnDefinition = "tinyint COMMENT '是否为子节点（没有子集的节点） 0否 1是'")
    private Integer isNode;

    /**
     * 备注
     */
    @Column(name = "remark", columnDefinition = "varchar(255) COMMENT '备注'")
    private String remark;

}
